package com.nationart.backend.util;

import javax.servlet.http.HttpServletRequest;

import org.springframework.util.StringUtils;


public class HttpUtils {
	public static boolean isAjaxRequest(HttpServletRequest request) {
		if(!StringUtils.isEmpty(request.getHeader("x-requested-with")) && request.getHeader("x-requested-with").equals("XMLHttpRequest")){  
            return true;  
        }  
		return false;
	}
}
